import Vue from "vue";
import VueRouter from "vue-router";
import App from "@/views/index.vue";
// import tablePage from "@/views/tablePage/index.vue";
// import tree from "@/views/tree/index.vue";
import form_index from "@/views/form/index.vue";
import calendar from "@/views/calendar/index.vue";
// import map from "@/views/map/index.vue";
// import table from "@/views/table/index.vue";
import prod from "@/views/Product.vue";
Vue.use(VueRouter);
const router = new VueRouter({
  mode: "hash",
  base: "/",
  routes: [
    {
      path: "/",
      component: App
    },
    {
      path: "/tablePage",
      component: () => import("@/views/tablePage/index.vue")
    },
    {
      path: "/tree",
      component: () => import("@/views/tree/index.vue")
    },
    {
      path: "/form_index",
      component: form_index
    },
    {
      path: "/calendar",
      component: calendar
    },
    {
      path: "/map",
      component: resolve => require(["@/views/map/index.vue"], resolve)
    },
    {
      path: "/table",
      component: resolve => require(["@/views/table/index.vue"], resolve)
    },
    {
      path: "/prod",
      component: prod
    }
  ]
});

export default router;
